package action.chap12;

import java.time.Instant;
import java.time.LocalDate;

import static java.time.temporal.TemporalAdjusters.*;


public class Demo04 {
    public static void main(String[] args) {
        LocalDate date1 = LocalDate.now();
        LocalDate date2 = date1.with(lastDayOfMonth());
        System.out.println(date2);
        Instant instant = Instant.ofEpochSecond(1000000);
        System.out.println(instant);

    }
}
